//
//  CoverManager.h
//  IOS7MEMTEST
//
//  Created by Eric on 13-10-15.
//  Copyright (c) 2013年 Eric. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CoverManager : NSObject
@property (nonatomic,weak) UIView *theView;
@property (nonatomic,weak) UIView *theSuperView;
@property(nonatomic) CGFloat keyboardOffset;
@property (nonatomic) CGRect recoverRect;/**<点击完成后，强制theSuperView恢复到一个rect*/

/**
 *  在一些自定义控件中（没有firstResponder时）使用
 */
@property (nonatomic, copy) BOOL(^isViewFocused)(UIView *view);

-(id)initWithUIView:(UIView*)aView;

/**
 * 如果需要在连续切换控件时避免遮盖，需要在-(BOOL)becomeFirstResponder中调此函数，且要放在[super becomeFirstResponder]前面调用
 */
-(void)refresh;
-(void)registKeyboradNotificaiton;
-(void)removeKeyboradNotification;
-(void)clean;
@end
